import re

pattern = r"\d+"  # 按数字分割
text = "abc123def456ghi789"

result = re.split(pattern, text)
print(result)  # 输出：['abc', 'def', 'ghi', '']
